//
//  YHYHunterCityModel.m
//  TripTogether
//
//  Created by 杨泓晔 on 15/12/23.
//  Copyright © 2015年 杨泓晔. All rights reserved.
//

#import "YHYHunterCityModel.h"

@implementation YHYHunterCityModel
#pragma mark - 城市猎人Model
-(void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];//如果想要给个别的属性赋值,必须调用父类的这个方法,否则会赋不上值
    
    // 对于不匹配的值可以进行处理
    if ([key isEqualToString:@"user"]) {
        self.userName = [value objectForKey:@"name"];
    }
    
    if ([key isEqualToString:@"user"]) {
        self.userAvatar_l = [value objectForKey:@"avatar_l"];
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}


@end
